package com.itheima.Demo2;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList(arrayList,"抽象","安稳");
    }
    public static <E> ArrayList<E> arrayList(ArrayList<E> arrayList,E t1,E t2){
        arrayList.add(t1);
        arrayList.add(t2);
        System.out.println(arrayList);
        return arrayList;
    }
}
